/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #3f60c2;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

h2, h3 {
  font-family: 'Barlow', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-lg {
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
  background: rgb(222, 233, 247);
  color: #3f60c2;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Flex layout */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.header-text p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  color: #3f60c2;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: #00c043;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background: #49dd7d;
    transform: translateY(-2px);
}


.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3f60c2;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: border-left 0.2s ease;
  border-left: 4px solid transparent;
  /*width: 270px;*/
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-card:hover {
  border-left: 4px solid #00c043;
}

.service-icon img {
  height: 100px;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1rem;
  color: #3f60c2;
  text-align: center;
}

.service-card p {
  font-size: 0.85rem;
  text-align: center;
  color: #555;
}


/* Photo Gallery */
.photo-gallery {
    padding: 4rem 0;
    background: white;
}

.gallery-grid {
    display: flex;
    flex-wrap: nowrap;         /* keeps all items in one horizontal line */
    gap: 1.5rem;
    overflow-x: auto;          /* enables scrolling */
    padding: 1rem 0;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        columns: 4;
    }
}

.gallery-item {
    flex: 0 0 250px;           /* fixed width */
    height: 180px;             /* fixed height */
    margin-bottom: 0;          /* no stacking */
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 120, 218, 0.8);
    color: white;
    display: flex;
    align-items: center;       /* vertical centering */
    justify-content: center;   /* horizontal centering */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    padding: 1rem;
}

.gallery-overlay h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.875rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: #f1f5f9;
}

.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;         /* Keep items in a single row */
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

.testimonial-card {
    flex: 0 0 300px;            /* Fixed width */
    height: 100%;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    height: 8rem;
    background-size: cover;
    background-position: center;
}

.testimonial-content {
    padding: 1.5rem;
}

.testimonial-stars {
    display: flex;
    margin-bottom: 0.75rem;
}

.star {
    color: #fbbf24;
    margin-right: 0.25rem;
}

.star.empty {
    color: #d1d5db;
}

.testimonial-text {
  max-height: 120px;         /* limit visible text */
  overflow: hidden;
  position: relative;
  font-style: italic;
  transition: max-height 0.3s ease;
}

.testimonial-text.expanded {
  max-height: none;         /* fully visible when expanded */
}

.read-more {
  color: #1e40af;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-block;
}

.testimonial-author {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.testimonial-author h4 {
    font-weight: 600;
    color: #1e40af;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: #3f60c2;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #f1f5f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-decoration: none;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    text-decoration: none;
}

.contact-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 3rem;
    color: #3f60c2;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #3f60c2;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #64748b;
}

.contact-card a {
    color: #3f60c2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #3b82f6;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.whatsapp-button {
    background: #25d366;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.3s ease;
}

.whatsapp-button:hover {
    background: #20ba5a;
}

/* Social Media */
.social-section {
    text-align: center;
}

.social-section h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #3f60c2;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    
}

.social-button {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: #3f60c2;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
}

.social-button:hover {
    background: #3f60c2;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #3f60c2;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        text-align: center;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.125rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .slider-nav {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 1.75rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

 .branding-group {
  display: flex !important;
  align-items: center !important;
  gap: 1rem;
}

/* Logo size */
.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Text next to logo */
.branding-text h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.branding-text p {
  margin: 0;
  font-size: 1rem;
  color: white;
}

 @media (max-width: 768px) {
    #about .about-flex {
      flex-direction: column !important;
    }

    #about .about-images {
      justify-content: center !important;
    }

    #about .about-images img {
      width: 100px !important;
      height: 100px !important;
    }
  }


}